
version 14.2
clear
log using "C:\Users\sgolder\Dropbox\OUP_Multilevel_Book\OUP multilevel electoral behavior book\chapter 7\replication\ch7_analyses.log", replace
set more off

use "C:\Users\sgolder\Dropbox\OUP_Multilevel_Book\OUP multilevel electoral behavior book\chapter 7\replication\ch7.dta", clear



********************************************************

**** EXPLAINING EVALUATIONS Table 7.1

**** National Economic Evaluations at time of national survey


*** IDF national
logit worsenational i.female age schooling  i.partyID i.opposeID  if ELECID==5 

*** Provence national
logit worsenational  i.female age schooling i.partyID i.opposeID  if ELECID==6 

*** Catalonia national
logit worsenational  i.female age schooling  i.partyID i.opposeID  if ELECID==7

*** Madrid national
logit worsenational  i.female age schooling i.partyID i.opposeID if ELECID==9 

*** Lower Saxony
logit worsenational  i.female age schooling i.partyID i.opposeID if ELECID==10 

logit betternational  i.female age schooling i.partyID i.opposeID   if ELECID==10 

*** Bavaria national
logit worsenational  i.female age schooling i.partyID i.opposeID if ELECID==12

logit betternational  i.female age schooling i.partyID i.opposeID   if ELECID==12

***Subnational Economic Evaluations at time of subnational survey

*** Paris subnational
logit worseregional  i.female age schooling i.partyID i.opposeID if ELECID==22

*** Marseille subnational
logit worseregional  i.female age schooling i.partyID i.opposeID if ELECID==23

*** Catalonia subnational
logit worseregional  i.female age schooling i.partyID i.opposeID if ELECID==8

*** Madrid subnational no data

*** Lower Saxony subnational
logit worseregional  i.female age schooling i.partyID i.opposeID if ELECID==11
 
logit  betterregional  i.female age schooling i.partyID i.opposeID if ELECID==11


*** Bavaria subnational
logit worseregional  i.female age schooling i.partyID i.opposeID if ELECID==13

logit betterregional  i.female age schooling i.partyID i.opposeID if ELECID==13


********************************************************
*** auxilliary analyses with marginal effects based on analyses in Table 7.1

*** IDF national
logit worsenational i.female age schooling  i.partyID i.opposeID  if ELECID==5 
margins, dydx(partyID)
margins, dydx(opposeID)

*** Provence national
logit worsenational  i.female age schooling i.partyID i.opposeID  if ELECID==6 
margins, dydx(partyID)
margins, dydx(opposeID)

*** Catalonia national
logit worsenational  i.female age schooling  i.partyID i.opposeID  if ELECID==7
margins, dydx(partyID)
margins, dydx(opposeID)

*** Madrid national
logit worsenational  i.female age schooling i.partyID i.opposeID if ELECID==9 
margins, dydx(partyID)
margins, dydx(opposeID)

*** Lower Saxony
logit worsenational  i.female age schooling i.partyID i.opposeID if ELECID==10 
margins, dydx(partyID)
margins, dydx(opposeID)
 
logit betternational  i.female age schooling i.partyID i.opposeID   if ELECID==10 
margins, dydx(partyID)
margins, dydx(opposeID)

*** Bavaria national
logit worsenational  i.female age schooling i.partyID i.opposeID if ELECID==12
margins, dydx(partyID)
margins, dydx(opposeID)

logit betternational  i.female age schooling i.partyID i.opposeID   if ELECID==12
margins, dydx(partyID)
margins, dydx(opposeID)

***Subnational Economic Evaluations at time of subnational survey

*** Paris subnational
logit worseregional  i.female age schooling i.partyID i.opposeID if ELECID==22
margins, dydx(partyID)
margins, dydx(opposeID)

*** Marseille subnational
logit worseregional  i.female age schooling i.partyID i.opposeID if ELECID==23
margins, dydx(partyID)
margins, dydx(opposeID)

*** Catalonia subnational
logit worseregional  i.female age schooling i.partyID i.opposeID if ELECID==8
margins, dydx(partyID)
margins, dydx(opposeID)

*** Madrid subnational no data

*** Lower Saxony subnational
logit worseregional  i.female age schooling i.partyID i.opposeID if ELECID==11
margins, dydx(partyID)
margins, dydx(opposeID)
 
logit  betterregional  i.female age schooling i.partyID i.opposeID if ELECID==11
margins, dydx(partyID)
margins, dydx(opposeID)

*** Bavaria subnational
logit worseregional  i.female age schooling i.partyID i.opposeID if ELECID==13
margins, dydx(partyID)
margins, dydx(opposeID)

logit betterregional  i.female age schooling i.partyID i.opposeID if ELECID==13
margins, dydx(partyID)
margins, dydx(opposeID)

**************************************************************

**** EXPLAINING ATTRIBUTIONS OF RESPONSIBILITY Table 7.2

**** National Attributions

*** IDF national
logit NATworse i.partyID i.opposeID i.nationalmore i.highinformation if ELECID==5 & NATworse<2

*** Provence national
logit NATworse i.partyID i.opposeID i.nationalmore i.highinformation if ELECID==6 & NATworse<2 

*** Catalonia national
logit NATworse i.partyID i.opposeID i.nationalmore i.highinformation if ELECID==7 & NATworse<2 

*** Madrid national
logit NATworse i.partyID i.opposeID i.nationalmore i.highinformation if ELECID==9 & NATworse<2 

*** Lower Saxony
logit NATworse i.partyID i.opposeID i.nationalmore i.highinformation if ELECID==10 & NATworse<2 

*** Bavaria national
logit NATworse i.partyID i.opposeID i.nationalmore  i.highinformation if ELECID==12 & NATworse<2 

*** Lower Saxony
logit NATbetter i.partyID i.opposeID i.nationalmore i.highinformation if ELECID==10 & NATbetter<2 


*** Bavaria national
logit NATbetter i.partyID i.opposeID i.nationalmore  i.highinformation if ELECID==12 & NATbetter<2 


***** Subnational Attributions

*** Catalonia subnational
logit REGworse partyID opposeID i.regionmore i.highinformation if ELECID==8 & REGworse<2


*** Madrid subnational MISSING

*** Lower Saxony subnational
logit REGworse i.partyID i.opposeID i.regionmore i.highinformation if ELECID==11 & REGworse<2 


*** Bavaria subnational
logit REGworse i.partyID i.opposeID i.regionmore i.highinformation if ELECID==13 & REGworse<2


*** Lower Saxony subnational
logit REGbetter i.partyID i.opposeID i.regionmore i.highinformation if ELECID==11 & REGbetter<2 


*** Bavaria subnational
logit REGbetter i.partyID i.opposeID i.regionmore  i.highinformation if ELECID==13 & REGbetter<2 

*** Paris municipal MISSING

*** Marseille municipal MISSING



********************************************************
*** auxilliary analyses with marginal effects based on analyses in Table 7.2

*** IDF national
logit NATworse i.partyID i.opposeID i.nationalmore i.highinformation if ELECID==5 & NATworse<2
margins, dydx(partyID)
margins, dydx(opposeID)
margins, dydx(highinformation)
margins, dydx(nationalmore)

*** Provence national
logit NATworse i.partyID i.opposeID i.nationalmore i.highinformation if ELECID==6 & NATworse<2 
margins, dydx(partyID)
margins, dydx(opposeID)
margins, dydx(highinformation)
margins, dydx(nationalmore)

*** Catalonia national
logit NATworse i.partyID i.opposeID i.nationalmore i.highinformation if ELECID==7 & NATworse<2 
margins, dydx(partyID)
margins, dydx(opposeID)
margins, dydx(highinformation)
margins, dydx(nationalmore)

*** Madrid national
logit NATworse i.partyID i.opposeID i.nationalmore i.highinformation if ELECID==9 & NATworse<2 
margins, dydx(partyID)
margins, dydx(opposeID)
margins, dydx(highinformation)
margins, dydx(nationalmore)

*** Lower Saxony
logit NATworse i.partyID i.opposeID i.nationalmore i.highinformation if ELECID==10 & NATworse<2 
margins, dydx(partyID)
margins, dydx(opposeID)
margins, dydx(highinformation)
margins, dydx(nationalmore)

*** Bavaria national
logit NATworse i.partyID i.opposeID i.nationalmore  i.highinformation if ELECID==12 & NATworse<2 
margins, dydx(partyID)
margins, dydx(opposeID)
margins, dydx(highinformation)
margins, dydx(nationalmore)

*** Lower Saxony
logit NATbetter i.partyID i.opposeID i.nationalmore i.highinformation if ELECID==10 & NATbetter<2 
margins, dydx(partyID)
margins, dydx(opposeID)
margins, dydx(highinformation)
margins, dydx(nationalmore)

*** Bavaria national
logit NATbetter i.partyID i.opposeID i.nationalmore  i.highinformation if ELECID==12 & NATbetter<2 
margins, dydx(partyID)
margins, dydx(opposeID)
margins, dydx(highinformation)
margins, dydx(nationalmore)

***** Subnational Attributions

*** Catalonia subnational
logit REGworse partyID opposeID i.regionmore i.highinformation if ELECID==8 & REGworse<2
margins, dydx(partyID)
margins, dydx(opposeID)
margins, dydx(highinformation)
margins, dydx(regionmore)

*** Madrid subnational Missing

*** Lower Saxony subnational
logit REGworse i.partyID i.opposeID i.regionmore i.highinformation if ELECID==11 & REGworse<2 
margins, dydx(partyID)
margins, dydx(opposeID)
margins, dydx(highinformation)
margins, dydx(regionmore)

*** Bavaria subnational
logit REGworse i.partyID i.opposeID i.regionmore i.highinformation if ELECID==13 & REGworse<2
margins, dydx(partyID)
margins, dydx(opposeID)
margins, dydx(highinformation)
margins, dydx(regionmore)

*** Lower Saxony subnational
logit REGbetter i.partyID i.opposeID i.regionmore i.highinformation if ELECID==11 & REGbetter<2 
margins, dydx(partyID)
margins, dydx(opposeID)
margins, dydx(highinformation)
margins, dydx(regionmore)

*** Bavaria subnational
logit REGbetter i.partyID i.opposeID i.regionmore  i.highinformation if ELECID==13 & REGbetter<2 
margins, dydx(partyID)
margins, dydx(opposeID)
margins, dydx(highinformation)
margins, dydx(regionmore)

*** Paris municipal MISSING

*** Marseille municipal MISSING

***********************************************************************

**** VOTE MODELS FOR ECONOMIC EVALUATIONS Table 7.3


*** NATIONAL VOTE

*** IDF national
logit INCUMBENT i.worsenational i.partyID i.opposeID if ELECID==5  & betternational==0

*** Provence national
logit INCUMBENT i.worsenational i.partyID i.opposeID if ELECID==6  & betternational==0

*** Catalonia national
logit INCUMBENT i.worsenational i.partyID i.opposeID if ELECID==7  & betternational==0

*** Madrid national
logit INCUMBENT i.worsenational i.partyID i.opposeID if ELECID==9  & betternational==0

*** Lower Saxony
logit INCUMBENT i.worsenational i.partyID i.opposeID if ELECID==10  & betternational==0

*** Bavaria national
logit INCUMBENT i.worsenational i.partyID i.opposeID if ELECID==12  & betternational==0

*** SUBNATIONAL VOTE

*** Marseille
logit INCUMBENT i.worseregional i.partyID i.opposeID if ELECID==23 & betterregional==0

*** Paris
logit INCUMBENT i.worseregional i.partyID i.opposeID if ELECID==22  & betterregional==0

*** Catalonia subnational
logit INCUMBENT i.worseregional i.partyID i.opposeID if ELECID==8 & betterregional==0

*** Madrid subnational Missing

*** Lower Saxony regional
logit INCUMBENT i.worseregional i.partyID i.opposeID if ELECID==11  & betterregional==0

*** Bavaria subnational
logit INCUMBENT i.worseregional i.partyID i.opposeID if ELECID==13  & betterregional==0

*** TAKING ACCOUNT OF RESPONSIBILITY ATTRIBUTIONS

**** National Vote

*** IDF national
logit INCUMBENT i.NATresp i.partyID i.opposeID if ELECID==5 & betternational==0

*** Provence national
logit INCUMBENT i.NATresp i.partyID i.opposeID if ELECID==6  & betternational==0

*** Catalonia national
logit INCUMBENT i.NATresp i.partyID i.opposeID if ELECID==7  & betternational==0

*** Madrid national
logit INCUMBENT i.NATresp i.partyID i.opposeID if ELECID==9  & betternational==0

*** Lower Saxony
logit INCUMBENT i.NATresp i.partyID i.opposeID if ELECID==10  & betternational==0

*** Bavaria national
logit INCUMBENT i.NATresp i.partyID i.opposeID if ELECID==12  & betternational==0


**** Subnational Vote

*** Marseille Missing 

*** Paris Missing

*** Catalonia subnational
logit INCUMBENT i.REGresp i.partyID i.opposeID if ELECID==8  & betterregional==0

*** Madrid subnational Missing

*** Lower Saxony subnational
logit INCUMBENT i.REGresp i.partyID i.opposeID if ELECID==11  & betterregional==0

*** Bavaria subnational
logit INCUMBENT i.REGresp i.partyID i.opposeID if ELECID==13 & worseregional<2  & betterregional==0


********************************************************
*** auxilliary analyses with marginal effects based on analyses in Table 7.3


*** NATIONAL VOTE

*** IDF national
logit INCUMBENT i.worsenational i.partyID i.opposeID if ELECID==5  & betternational==0
margins, dydx(worsenational)
margins, dydx(partyID)
margins, dydx(opposeID)

*** Provence national
logit INCUMBENT i.worsenational i.partyID i.opposeID if ELECID==6  & betternational==0
margins, dydx(worsenational)
margins, dydx(partyID)
margins, dydx(opposeID)

*** Catalonia national
logit INCUMBENT i.worsenational i.partyID i.opposeID if ELECID==7  & betternational==0
margins, dydx(worsenational)
margins, dydx(partyID)
margins, dydx(opposeID)

*** Madrid national
logit INCUMBENT i.worsenational i.partyID i.opposeID if ELECID==9  & betternational==0
margins, dydx(worsenational)
margins, dydx(partyID)
margins, dydx(opposeID)

*** Lower Saxony
logit INCUMBENT i.worsenational i.partyID i.opposeID if ELECID==10  & betternational==0
margins, dydx(worsenational)
margins, dydx(partyID)
margins, dydx(opposeID)

*** Bavaria national
logit INCUMBENT i.worsenational i.partyID i.opposeID if ELECID==12  & betternational==0
margins, dydx(worsenational)
margins, dydx(partyID)
margins, dydx(opposeID)

*** SUBNATIONAL VOTE

*** Marseille
logit INCUMBENT i.worseregional i.partyID i.opposeID if ELECID==23 & betterregional==0
margins, dydx(worseregional)
margins, dydx(partyID)
margins, dydx(opposeID)

*** Paris
logit INCUMBENT i.worseregional i.partyID i.opposeID if ELECID==22  & betterregional==0
margins, dydx(worseregional)
margins, dydx(partyID)
margins, dydx(opposeID)

*** Catalonia subnational
logit INCUMBENT i.worseregional i.partyID i.opposeID if ELECID==8 & betterregional==0
margins, dydx(worseregional)
margins, dydx(partyID)
margins, dydx(opposeID)

*** Madrid subnational Missing

*** Lower Saxony regional
logit INCUMBENT i.worseregional i.partyID i.opposeID if ELECID==11  & betterregional==0
margins, dydx(worseregional)
margins, dydx(partyID)
margins, dydx(opposeID)

*** Bavaria subnational
logit INCUMBENT i.worseregional i.partyID i.opposeID if ELECID==13  & betterregional==0
margins, dydx(worseregional)
margins, dydx(partyID)
margins, dydx(opposeID)

*** TAKING ACCOUNT OF RESPONSIBILITY ATTRIBUTIONS

**** National Vote

*** IDF national
logit INCUMBENT i.NATresp i.partyID i.opposeID if ELECID==5 & betternational==0
margins, dydx(NATresp)
margins, dydx(partyID)
margins, dydx(opposeID)

*** Provence national
logit INCUMBENT i.NATresp i.partyID i.opposeID if ELECID==6  & betternational==0
margins, dydx(NATresp)
margins, dydx(partyID)
margins, dydx(opposeID)

*** Catalonia national
logit INCUMBENT i.NATresp i.partyID i.opposeID if ELECID==7  & betternational==0
margins, dydx(NATresp)
margins, dydx(partyID)
margins, dydx(opposeID)

*** Madrid national
logit INCUMBENT i.NATresp i.partyID i.opposeID if ELECID==9  & betternational==0
margins, dydx(NATresp)
margins, dydx(partyID)
margins, dydx(opposeID)

*** Lower Saxony
logit INCUMBENT i.NATresp i.partyID i.opposeID if ELECID==10  & betternational==0
margins, dydx(NATresp)
margins, dydx(partyID)
margins, dydx(opposeID)

*** Bavaria national
logit INCUMBENT i.NATresp i.partyID i.opposeID if ELECID==12  & betternational==0
margins, dydx(NATresp)
margins, dydx(partyID)
margins, dydx(opposeID)


**** Subnational Vote

*** Marseille Missng 

*** Paris Missing

*** Catalonia subnational
logit INCUMBENT i.REGresp i.partyID i.opposeID if ELECID==8  & betterregional==0
margins, dydx(REGresp)
margins, dydx(partyID)
margins, dydx(opposeID)

*** Madrid subnational Missing

*** Lower Saxony subnational
logit INCUMBENT i.REGresp i.partyID i.opposeID if ELECID==11  & betterregional==0
margins, dydx(REGresp)
margins, dydx(partyID)
margins, dydx(opposeID)

*** Bavaria subnational
logit INCUMBENT i.REGresp i.partyID i.opposeID if ELECID==13 & worseregional<2  & betterregional==0
margins, dydx(REGresp)
margins, dydx(partyID)
margins, dydx(opposeID)

**** Adding Interactions with Knowledge--impact of negative evaluation does not vary by knowledge

**** National Vote

*** IDF national
logit INCUMBENT i.worsenational##i.highinformation i.partyID i.opposeID if ELECID==5 & betternational==0
margins, dydx(partyID)
margins, dydx(opposeID)
margins worsenational##highinformation
margins, dydx(highinformation) at(worsenational=(0 1))

*** Provence national
logit INCUMBENT ii.worsenational##i.highinformation  i.partyID i.opposeID if ELECID==6  & betternational==0
margins, dydx(partyID)
margins, dydx(opposeID)
margins worsenational##highinformation
margins, dydx(highinformation) at(worsenational=(0 1))

*** Catalonia national
logit INCUMBENT i.worsenational##i.highinformation  i.partyID i.opposeID if ELECID==7  & betternational==0
margins, dydx(partyID)
margins, dydx(opposeID)
margins worsenational##highinformation
margins, dydx(highinformation) at(worsenational=(0 1))

*** Madrid national
logit INCUMBENT i.worsenational##i.highinformation  i.partyID i.opposeID if ELECID==9  & betternational==0
margins, dydx(partyID)
margins, dydx(opposeID)
margins worsenational##highinformation
margins, dydx(highinformation) at(worsenational=(0 1))

*** Lower Saxony
logit INCUMBENT i.worsenational##i.highinformation  i.partyID i.opposeID if ELECID==10  & betternational==0
margins, dydx(partyID)
margins, dydx(opposeID)
margins worsenational##highinformation
margins, dydx(highinformation) at(worsenational=(0 1))

*** Bavaria national
logit INCUMBENT i.worsenational##i.highinformation  i.partyID i.opposeID if ELECID==12  & betternational==0
margins, dydx(partyID)
margins, dydx(opposeID)
margins worsenational##highinformation
margins, dydx(highinformation) at(worsenational=(0 1))


**** Subnational Vote

*** Marseille Missng 

*** Paris Missing

*** Catalonia subnational
logit INCUMBENT worseregional##highinformation i.partyID i.opposeID if ELECID==8  & betterregional==0
margins, dydx(partyID)
margins, dydx(opposeID)
margins worseregional##highinformation
margins, dydx(highinformation) at(worseregional=(0 1))

*** Madrid subnational Missing

*** Lower Saxony subnational
logit INCUMBENT worseregional##highinformation i.partyID i.opposeID if ELECID==11  & betterregional==0
margins, dydx(partyID)
margins, dydx(opposeID)
margins worseregional##highinformation
margins, dydx(highinformation) at(worseregional=(0 1))

*** Bavaria subnational
logit INCUMBENT worseregional##highinformation i.partyID i.opposeID if ELECID==13 & worseregional<2  & betterregional==0
margins, dydx(partyID)
margins, dydx(opposeID)
margins worseregional##highinformation
margins, dydx(highinformation) at(worseregional=(0 1))

**********************************************************************


*** Corruption

*** Perceived National Corruption Table 7.4

*** IDF national
regress nationalcorrupt i.partyID i.opposeID i.nationalmore i.highinformation i.female age schooling if ELECID==5 

*** Provence national
regress nationalcorrupt i.partyID i.opposeID i.nationalmore   i.highinformation i.female age schooling if ELECID==6 

*** Catalonia national
regress nationalcorrupt i.partyID i.opposeID i.nationalmore  i.highinformation i.female age schooling if ELECID==7

*** Madrid national
regress nationalcorrupt i.partyID i.opposeID i.nationalmore  i.highinformation i.female age schooling if ELECID==9 

*** Lower Saxony
regress nationalcorrupt i.partyID i.opposeID i.nationalmore  i.highinformation i.female age schooling if ELECID==10 

*** Bavaria national
regress nationalcorrupt i.partyID i.opposeID i.nationalmore   i.highinformation i.female age if ELECID==12

***Perceived Subnational Corruption 

*** Paris
regress municipalcorrupt i.partyID i.opposeID i.highinformation i.female age schooling if ELECID==22

*** Marseille
regress municipalcorrupt i.partyID i.opposeID i.highinformation i.female age schooling if ELECID==23

*** Catalonia subnational
regress regionalcorrupt i.partyID i.opposeID i.regionmore  i.highinformation i.female age schooling if ELECID==8

*** Madrid subnational
regress regionalcorrupt i.partyID i.opposeID i.regionmore  i.highinformation i.female age schooling if ELECID==24

*** Lower Saxony subnational
regress regionalcorrupt i.partyID i.opposeID i.regionmore  i.highinformation i.female age schooling if ELECID==11

*** Bavaria subnational
regress regionalcorrupt i.partyID i.opposeID i.regionmore   i.highinformation i.female age schooling if ELECID==13




*********************************************************

**** Examining Impact of Cross-level Economic Evaluations Table 7.5


**** National Vote

*** IDF national
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==5  & betternational==0

*** Provence national
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==6  & betternational==0

*** Catalonia national
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==7  & betternational==0

*** Madrid national
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==9  & betternational==0

*** Lower Saxony
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==10  & betternational==0

*** Bavaria national
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==12  & betternational==0

**** Subnational Vote

*** Marseille
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==23  & betterregional==0

*** Paris
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==22  & betterregional==0

*** Catalonia subnational
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==8  & betterregional==0

*** Madrid subnational Missing

*** Lower Saxony subnational
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==11  & betterregional==0

*** Bavaria subnational
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==13  & betterregional==0


********************************************************
*** auxilliary analyses with marginal effects based on analyses in Table 7.5


**** National Vote

*** IDF national
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==5  & betternational==0
margins, dydx(worsenational)
margins, dydx(worseregional)

*** Provence national
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==6  & betternational==0
margins, dydx(worsenational)
margins, dydx(worseregional)

*** Catalonia national
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==7  & betternational==0
margins, dydx(worsenational)
margins, dydx(worseregional)

*** Madrid national
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==9  & betternational==0
margins, dydx(worsenational)
margins, dydx(worseregional)

*** Lower Saxony
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==10  & betternational==0
margins, dydx(worsenational)
margins, dydx(worseregional)

*** Bavaria national
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==12  & betternational==0
margins, dydx(worsenational)
margins, dydx(worseregional)

**** Subnational Vote

*** Marseille
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==23  & betterregional==0
margins, dydx(worseregional)
margins, dydx(worsenational)

*** Paris
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==22  & betterregional==0
margins, dydx(worseregional)
margins, dydx(worsenational)

*** Catalonia subnational
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==8  & betterregional==0
margins, dydx(worseregional)
margins, dydx(worsenational)

*** Madrid subnational Missing

*** Lower Saxony subnational
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==11  & betterregional==0
margins, dydx(worseregional)
margins, dydx(worsenational)

*** Bavaria subnational
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==13  & betterregional==0
margins, dydx(worseregional)
margins, dydx(worsenational)


*** National economic perceptions in EU election 

*** IDF EU

tab nationaleconomy if ELECID==17

*** Provence EU

tab nationaleconomy if ELECID==16

*** Catalonia EU

tab nationaleconomy if ELECID==20

*** Madrid EU

tab nationaleconomy if ELECID==21

*** Lower Saxony EU

tab nationaleconomy if ELECID==18

*** Bavaria EU

tab nationaleconomy if ELECID==19

*** European VOTE 


*** Table 7.6

*** IDF EU
logit INCUMBENT i.worsenational i.partyID i.opposeID if ELECID==17 & betternational<2

*** Provence EU
logit INCUMBENT i.worsenational i.partyID i.opposeID if ELECID==16 & betternational<2

*** Catalonia EU
logit INCUMBENT i.worsenational i.betternational i.partyID i.opposeID if ELECID==20

*** Madrid EU
logit INCUMBENT i.worsenational i.betternational i.partyID i.opposeID if ELECID==21

*** Lower Saxony EU
logit INCUMBENT i.worsenational i.betternational i.partyID i.opposeID if ELECID==18

*** Bavaria EU
logit INCUMBENT i.worsenational i.betternational i.partyID i.opposeID if ELECID==19



********************************************************
*** Additional EU election models
*** auxilliary analyses with marginal effects based on analyses in Table 7.6


**** National Vote

*** IDF national
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==5  & betternational==0
margins, dydx(worsenational)
margins, dydx(worseregional)

*** Provence national
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==6  & betternational==0
margins, dydx(worsenational)
margins, dydx(worseregional)

*** Catalonia national
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==7  & betternational==0
margins, dydx(worsenational)
margins, dydx(worseregional)

*** Madrid national
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==9  & betternational==0
margins, dydx(worsenational)
margins, dydx(worseregional)

*** Lower Saxony
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==10  & betternational==0
margins, dydx(worsenational)
margins, dydx(worseregional)

*** Bavaria national
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==12  & betternational==0
margins, dydx(worsenational)
margins, dydx(worseregional)

**** Subnational Vote

*** Marseille
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==23  & betterregional==0
margins, dydx(worseregional)
margins, dydx(worsenational)

*** Paris
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==22  & betterregional==0
margins, dydx(worseregional)
margins, dydx(worsenational)

*** Catalonia subnational
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==8  & betterregional==0
margins, dydx(worseregional)
margins, dydx(worsenational)

*** Madrid subnational Missing

*** Lower Saxony subnational
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==11  & betterregional==0
margins, dydx(worseregional)
margins, dydx(worsenational)

*** Bavaria subnational
logit INCUMBENT i.worsenational i.worseregional i.partyID i.opposeID if ELECID==13  & betterregional==0
margins, dydx(worseregional)
margins, dydx(worsenational)

*** Table 7.6 

*** IDF EU
logit INCUMBENT i.worsenational i.partyID i.opposeID if ELECID==17 & betternational<2
margins, dydx(worsenational)

*** Provence EU
logit INCUMBENT i.worsenational i.partyID i.opposeID if ELECID==16 & betternational<2
margins, dydx(worsenational)

*** Catalonia EU
logit INCUMBENT i.worsenational i.betternational i.partyID i.opposeID if ELECID==20
margins, dydx(worsenational)
margins, dydx(betternational)

*** Madrid EU
logit INCUMBENT i.worsenational i.betternational i.partyID i.opposeID if ELECID==21
margins, dydx(worsenational)
margins, dydx(betternational)

*** Lower Saxony EU
logit INCUMBENT i.worsenational i.betternational i.partyID i.opposeID if ELECID==18
margins, dydx(worsenational)
margins, dydx(betternational)

*** Bavaria EU
logit INCUMBENT i.worsenational i.betternational i.partyID i.opposeID if ELECID==19
margins, dydx(worsenational)
margins, dydx(betternational)

log close
exit
